package photosalvage.entity;

public enum PhotoSize {
	THUMBNAIL_S("S"),
	THUMBNAIL_M("M"),
	THUMBNAIL_L("L"),
	ORIGINAL(""),
	;
	
	public static PhotoSize forName(String sizeName) {
		if ("S".equalsIgnoreCase(sizeName)) {
			return THUMBNAIL_S;
		} else if ("M".equalsIgnoreCase(sizeName)) {
			return THUMBNAIL_M;
		} else if ("L".equalsIgnoreCase(sizeName)) {
			return THUMBNAIL_L;
		}
		return ORIGINAL;
	}
	private final String sizeName;
	PhotoSize(String sizeName) {
		this.sizeName = sizeName;
	}
	public String getSizeName() {
		return sizeName;
	}
}
